//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package pxb.android.zipalign;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.List;

public interface Source {
    static Source newRawEntry(String name, final ByteBuffer content) throws IOException {
        final FastZipEntry zipEntry = new FastZipEntry();
        zipEntry.setUtf8Name(name);
        zipEntry.crc = FastZipOut.crc(content.slice());
        zipEntry.compressionMethod = 0;
        zipEntry.compressedSize = content.remaining();
        zipEntry.unCompressSize = content.remaining();
        return new Source() {
            public List<FastZipEntry> entries() {
                return Arrays.asList(zipEntry);
            }

            public ByteBuffer getRaw(FastZipEntry entry) throws IOException {
                return content;
            }
        };
    }

    ByteBuffer getRaw(FastZipEntry var1) throws IOException;

    List<FastZipEntry> entries();
}
